{extend name="user/index" /}


{block name="main"}

    <form action="{:url('rest/user/update', ['id'=>$data['id']])}" method="post" class="h3 mt20">
        <input type="hidden" name="_method" value="PUT" >
        <input type="hidden" name="id" value="{$data.id}">

        name:
        <input type="text" name="name" value="{$data.name}" placeholder="请输入用户名"><br><br>
        sex:
        <input type="radio" name="sex" value="0" {if condition="$data.sex eq '0'"}checked{/if} >女
        <input type="radio" name="sex" value="1" {if condition="$data.sex eq '1'"}checked{/if} >男
        <input type="radio" name="sex" value="2" {if condition="$data.sex eq '2'"}checked{/if} >保密<br><br>
        age:
        <input type="text" name="age" value="{$data.age}"><br><br>
        province:
        <select name="province">
            <option value="江苏" {if condition="$data.province eq '江苏'"}selected{/if}>江苏</option>
            <option value="上海" {if condition="$data.province eq '上海'"}selected{/if}>上海</option>
            <option value="新疆" {if condition="$data.province eq '新疆'"}selected{/if}>新疆</option>
            <option value="浙江" {if condition="$data.province eq '浙江'"}selected{/if}>浙江</option>
            <option value="北京" {if condition="$data.province eq '北京'"}selected{/if}>北京</option>
            <option value="深圳" {if condition="$data.province eq '深圳'"}selected{/if}>深圳</option>
            <option value="纽约" {if condition="$data.province eq '纽约'"}selected{/if}>纽约</option>
        </select>
        <input type="hidden" name="vcode" value="1234">
        <input type="hidden" name="hehe" value="dsadas">
        <input type="hidden" name="haha" value="wwwww">
        <br>
        <br>
        <br>
        <button class="btn btn-ls btn-success">保存</button>
    </form>

{/block}
